package logs

import (
	error2 "OnlineRetailers/models/errorDeal"
	"github.com/beego/beego/v2/core/logs"
)

func LogRun() {
	err := logs.SetLogger(logs.AdapterFile, `{"filename":"project.log","level":7,"maxlines":1000,"maxsize":1024,"daily":true,"maxdays":15,"color":true}`)
	if err != nil {
		panic(err)
	}
	logs.Info("run")
}

func Log(log *error2.Log) {

	//err:=models.Log{Err: errTxt,Addr:add,More:more }
	logs.Info(log)
	//logs.Info(1)
}
